<%inherit file="/dashboard/site.mako" />
<%def name="title()">Dashboard - Ajouter un evenement</%def>
<div style="padding: 20px;">
	<div>${c.message | n}</div>
	<p>Ajouter un evenement</p>
	<form method="post" action="/dashboard/add_evenement_submit" style="width: 710px">
		Nom : <input type="text" name="title" size="50" /><br /><br />
		<textarea name="content" id="news_content"></textarea>
		<input type="submit" value="Envoyer" /> - <a href="/dashboard">Annuler</a>
	</form>
</div>

<script type="text/javascript">
$(document).ready(function() {
	CKEDITOR.replace( 'news_content' );
	CKEDITOR.config.height = '600px';
	CKEDITOR.config.language = 'fr';
	CKEDITOR.config.contentsCss = '/ckeditor/mysitestyles.css';
	CKEDITOR.config.uiColor = 'grey';

	window.onbeforeunload = function (e) {
		  e = e || window.event;

		  // For IE and Firefox prior to version 4
		  if (e) {
		    e.returnValue = 'Any string';
		  }

		  // For Safari
		  return 'Any string';
		};
});
</script>